package ttt;

import java.util.ArrayList;

public class Node {
	private ArrayList<Node> children;
	private Object value;
	private int score;
	
	
	public Node(Object v) {
		value = v;
		score = 0; //Defaults to zero
	}
	
	public void addChild(Node n) {
		children.add(n);
	}
	
	public ArrayList<Node> getChildren() {
		return children;
	}
	
	public Object getValue() {
		return value;
	}
	
	public void setScore(int s) {
		score = s;
	}
	
	public int getScore() {
		return score;
	}
	
	public void setValue(Object v) {
		value = v;
	}

}
